package cn.tedu.restaurant.mapper;

import cn.tedu.restaurant.entity.Dishes;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author JachinLin
 * @since 2020-10-05
 */
public interface DishesMapper extends BaseMapper<Dishes> {
    List<Dishes> selectAllDishes();
    List<Dishes> selectByType(Integer type);
    List<Dishes> selectByChildType(Integer childType);
    List<Dishes> selectByName(@Param("name") String name);
    Integer updateTop(Integer uid,Integer topNum,Integer id);
}
